load("@rules_java//java:defs.bzl", "java_library")

java_library(
    name = "sshd",
    srcs = glob(["**/*.java"]),
    visibility = ["//visibility:public"],
    runtime_deps = ["//lib:jsch"],
    deps = [
        "//java/com/google/gerrit/common:annotations",
        "//java/com/google/gerrit/common:server",
        "//java/com/google/gerrit/entities",
        "//java/com/google/gerrit/exceptions",
        "//java/com/google/gerrit/extensions:api",
        "//java/com/google/gerrit/git",
        "//java/com/google/gerrit/json",
        "//java/com/google/gerrit/lifecycle",
        "//java/com/google/gerrit/metrics",
        "//java/com/google/gerrit/server",
        "//java/com/google/gerrit/server/audit",
        "//java/com/google/gerrit/server/cancellation",
        "//java/com/google/gerrit/server/git/receive",
        "//java/com/google/gerrit/server/ioutil",
        "//java/com/google/gerrit/server/logging",
        "//java/com/google/gerrit/server/restapi",
        "//java/com/google/gerrit/server/util/time",
        "//java/com/google/gerrit/util/cli",
        "//java/com/google/gerrit/util/logging",
        "//lib:args4j",
        "//lib:gson",
        "//lib:guava",
        "//lib:jgit",
        "//lib:jgit-archive",
        "//lib:jgit-ssh-apache",
        "//lib:servlet-api",
        "//lib/auto:auto-value",
        "//lib/auto:auto-value-annotations",
        "//lib/bouncycastle:bcprov-neverlink",
        "//lib/dropwizard:dropwizard-core",
        "//lib/flogger:api",
        "//lib/guice",
        "//lib/guice:guice-assistedinject",
        "//lib/guice:guice-servlet",  # SSH should not depend on servlet
        "//lib/log:log4j",
        "//lib/mina:core",
        "//lib/mina:sshd",
    ],
)
